package com.yunji.storage.service.impl;

import com.yunji.storage.dao.IExpressDao;
import com.yunji.storage.domain.ExpressDO;
import com.yunji.storage.service.IExpressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.storage.service.impl
 * @Title: ExpressServiceImpl
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-08-19 14:36:35      V1.0        HuaAo       新建类
 */
@Service
public class ExpressServiceImpl implements IExpressService {

    @Resource
    private IExpressDao expressDao;

    @Override
    public boolean create(ExpressDO express) {
        return expressDao.save(express);
    }

    @Override
    public boolean update(ExpressDO express) {
        return expressDao.updateById(express);
    }

    @Override
    public ExpressDO select(Long expressId) {
        return expressDao.getById(expressId);
    }
}